<?php
if(empty($Acan_bug)) global $Acan_bug;
if(defined('Acan_bug')){
	echo '<table>'.
		'<tr><td>oauth调用:</td><td>'.$Acan_bug['count']['oauth'].'次</td></tr><tr><td>source调用</td><td>'.$Acan_bug['count']['source'].'次</td></tr>'.
		'<tr><td>oauthc调用:</td><td>'.$Acan_bug['count']['oauthc'].'次</td></tr><tr><td>sourcec调用</td><td>'.$Acan_bug['count']['sourcec'].'次</td></tr>';
	if($Acan_bug['req']['oauth']){
		echo '<tr><th colspan="2">oauth</th></tr>';
		foreach ($Acan_bug['req']['oauth'] as $k => $v) {
			echo '<tr><td>'.$v['url'].' </td><td> '.json_encode($v['data']).'</td></tr>';
		}
	}
	if($Acan_bug['req']['source']){
		echo '<tr><th colspan="2">source</th></tr>';
		foreach ($Acan_bug['req']['source'] as $k => $v) {
			echo '<tr><td>'.$v['url'].' </td><td> '.json_encode($v['data']).'</td></tr>';
		}
	}
	if($Acan_bug['req']['oauthc']){
		echo '<tr><th colspan="2">oauthc</th></tr>';
		foreach ($Acan_bug['req']['oauthc'] as $k => $v) {
			echo '<tr><td>'.$v['url'].' </td><td> '.json_encode($v['data']).'</td></tr>';
		}
	}
	if($Acan_bug['req']['sourcec']){
		echo '<tr><th colspan="2">sourcec</th></tr>';
		foreach ($Acan_bug['req']['sourcec'] as $k => $v) {
			echo '<tr><td>'.$v['url'].' </td><td> '.json_encode($v['data']).'</td></tr>';
		}
	}
	echo '</table>';
}
?>